import {
	createRouter,
	createWebHistory
} from 'vue-router'

const router = createRouter({
	history: createWebHistory(), //工作模式 ，还有一种是hash
	routes: [{
			path: '/',
			name: 'index',
			component: () => import('@renderer/views/index/index.vue')
		},
		{
			path: '/home',
			name: 'home',
			component: () => import('@renderer/views/home/home.vue')
		},
		{
			path: '/404',
			component: () => import('@renderer/views/404.vue'),
			hidden: true
		},
		{
			path: '/:pathMach(.*)',
			redirect: '/404',
			hidden: true
		}]
})

export default router